// DrawCurveCtrler.h: interface for the CDrawCurveCtrler class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DRAWCURVECTRLER_H__E553288C_509D_4E15_93FD_03021AA7A029__INCLUDED_)
#define AFX_DRAWCURVECTRLER_H__E553288C_509D_4E15_93FD_03021AA7A029__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DrawObjectCtrler.h"

// used to draw curve (control class)
class CDrawCurveCtrler : public CDrawObjectCtrler  
{
public:
	CDrawCurveCtrler(COLORREF color = UD_RED, int width = 1, long style = PS_SOLID);
	virtual ~CDrawCurveCtrler();

	void StartPoint (long x, long y);
	void DrawObject (CDC *pDC);
	void MoveAt (CDC *pDC, long x, long y);
private:
	int m_nClickTimes;			// the click times
	long m_lStartx, m_lStarty;	// start point
	long m_lEndx, m_lEndy;		// end point
protected:
	void DrawArc(CDC *pDC, long x1, long y1, long x2, long y2);
};

#endif // !defined(AFX_DRAWCURVECTRLER_H__E553288C_509D_4E15_93FD_03021AA7A029__INCLUDED_)
